package org.platform.executor.knowledge;

import com.mc.mic.core.bus.provider.IMicProviderServiceExecutor;
import org.platform.mo.csmo.cmd10024.KnowPublishRequestParam;
import org.platform.mo.csmo.cmd10024.KnowPublishResponseParam;
import org.platform.service.knowledge.KnowledgeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author FengJie
 * @date 2018/4/16
 */
@Service
public class KnowPublishExecutor implements IMicProviderServiceExecutor<KnowPublishRequestParam, KnowPublishResponseParam> {
    @Autowired
    private KnowledgeServiceImpl service;

    @Override
    public KnowPublishResponseParam doExecute(KnowPublishRequestParam requestParam) {
        return service.knowPublish(requestParam);
    }
}
